package com.community.admin.security.validator;

import lombok.Data;

import java.io.Serializable;
import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.Pattern;

/**
 * @author Aiden
 * @date 2021/11/20
 */
@Data
public class PublicSecurityValid implements Serializable {
    @NotEmpty(message = "标题不能为空")
    private String title;
    @NotEmpty(message = "网格ID不能为空")
    private String grid_id;
    @Pattern(regexp = "^((17[0-9])|(14[0-9])|(13[0-9])|(15[^4,\\D])|(18[0,5-9]))\\d{8}$", message = "手机号码格式不正确")
    private String vegetation_phone;
}